Skip to content

chore: bump pgrx to v0.14.3#471

Merged
burmecia merged 3 commits intosupabase:mainfrom
zhjwpku:bump_pgrx_to_0.14.3
May 28, 2025
Merged

chore: bump pgrx to v0.14.3#471
burmecia merged 3 commits intosupabase:mainfrom
zhjwpku:bump_pgrx_to_0.14.3

Conversation

@zhjwpku
Copy link
Contributor

@zhjwpku zhjwpku commented May 27, 2025

PostgreSQL 12 has been unsupported for over half a year, and pgrx v0.14.0 officially dropped support for it.

The other reason I propose this version bumping is that pgrx v0.12.9 failed to install pg 12 on my mac.

This patch removes PG12 support from the wrappers by upgrading pgrx to v0.14.3. Some code adjustments were required due to changes introduced in the newer pgrx versions.

For reference, see the following updates in pgrx:

zhjwpku added 2 commits May 27, 2025 22:47
PostgreSQL 12 has been unsupported for over half a year,
and pgrx v0.14.0 officially dropped support for it.

The other reason I propose this version bumping is that
pgrx v0.12.9 failed to install pg 12 on my mac.

This patch removes PG12 support from the wrappers by
upgrading pgrx to v0.14.3. Some code adjustments were required
due to changes introduced in the newer pgrx versions.

For reference, see the following updates in pgrx:

- [force using extern "C-unwind" for functions marked with `#[pg_guard]`][1]
- [Made SPI query arguments type safe][2]
- [Added connect_mut for data changing SPI operations][3]
- [Renamed Oid::as_u32 to to_u32][4]

[1] pgcentralfoundation/pgrx#2014
[2] pgcentralfoundation/pgrx#1858
[3] pgcentralfoundation/pgrx#1913
[4] pgcentralfoundation/pgrx#2011

Signed-off-by: Junwang Zhao <[email protected]>
Signed-off-by: Junwang Zhao <[email protected]>
@zhjwpku zhjwpku force-pushed the bump_pgrx_to_0.14.3 branch from 284b80d to 250f64f Compare May 27, 2025 15:03
Signed-off-by: Junwang Zhao <[email protected]>
@zhjwpku
Copy link
Contributor Author

zhjwpku commented May 28, 2025

@burmecia can you please take a look at this PR, I checked the coverage, it seems the uncovered lines were not being executed previously either, so I don't think this should be an issue, WDYT?

@burmecia
Copy link
Member

It's very useful PR, thanks @zhjwpku 👍 ! It looks good for me and we will be doing some internal testing, don't worry about the Coverage for now.

@burmecia burmecia merged commit 0da8b71 into supabase:main May 28, 2025
5 of 6 checks passed
@zhjwpku zhjwpku deleted the bump_pgrx_to_0.14.3 branch May 28, 2025 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants